<?php include $this->tpl('public:common.php') ?>
<div class="well">
    <ul class="nav nav-tabs">
      <li class="active"><a href="#home" data-toggle="tab">设置邮件</a></li>
    </ul>	
	
	<div id="myTabContent" class="tab-content">
		  <div class="tab-pane active in" id="home">
           <form id="tab" method="post" action="">
				<label></label>
				<input type="radio" name="email_type" value="<?=\Lib\Mailer\Mailer::SMTP?>"<?=config('email_type')==\Lib\Mailer\Mailer::SMTP || !config('email_type') ? ' checked="true"' : ''?>> 采用其他的SMTP服务&nbsp;&nbsp;&nbsp;
				<input type="radio" name="email_type" value="<?=\Lib\Mailer\Mailer::MAIL?>"<?=config('email_type')==\Lib\Mailer\Mailer::MAIL ? ' checked="true"' : ''?>> 采用服务器内置的Mail服务
				<div style="height:10px"></div>
				<label>SMTP服务器</label>
				<input class="input-xlarge" type="text" name="email_host" value="<?=config('email_host')?>">
				<label>SMTP端口</label>
				<input class="input-mini" type="text" name="email_port" value="<?=config('email_port')?>">
				<label>SMTP 身份验证用户名</label>
				<input class="input-xlarge" type="text" name="email_user" value="<?=config('email_user')?>">
				<label>SMTP 身份验证密码</label>
				<input class="input-xlarge" type="text" name="email_pass" value="<?=config('email_pass')?>">
				<label>发信人邮件地址</label>
				<input class="input-xlarge" type="text" name="email_addr" value="<?=config('email_addr')?>">
				<label>测试邮件地址</label>
				<input class="input-xlarge" type="text" id="email_test" value=""><a href="javascript:;">测试一下</a>
				<div class="btn-toolbar">
					<button type="submit" class="btn btn-primary"><strong>提交</strong></button>
				</div>
			</form>
        </div>
    </div>
</div>
<?php include $this->tpl('public:footer.php') ?>